package com.deep.transaction.demo7;


import com.deep.transaction.demo7.model.User;
import com.deep.transaction.demo7.service.UserService2;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

@SpringBootTest(classes = SpringTransractionApplication.class)
public class TransractionApplication {
    @Autowired
    public UserService2 userService2;

    /**
     * 测试事务方法不为public修饰
     */
    // @Test
    public void testNotPublic() {
        User user = new User();
        user.setId("123456789");
        user.setName("test");
        user.setPassword("123456");
        user.setAge(10);
        userService2.testNotPublic(user);
    }

    @Test
    public void tt() {
        System.out.println("aa");
    }
}
